<?php

header("Content-Type:text/html; charset=gb2312");

require "./include/common.inc.php";

if (submitcheck("bugsubmit"))
{
    $title = xkaddslashes(trim($title));
    $description = xkaddslashes(trim($description));
    $query = $db->query("insert into `{$tablepre}bugreport` (`uid`, `title`, `description`, `level`) values ('{$uid}', '{$title}', '{$description}', '0')");
}

include template("bugreport");

?>